package com.ruoyi.dynamic.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 代码生成业务字段对象 dynamic_column
 * 
 * @author ningtao
 * @date 2022-11-27
 */
public class DynamicColumn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 归属表编号 */
    private String moduleId;

    /** 归属表编号 */
    private String tableCode;

    /** 列名称 */
    private String columnName;

    /** 显示名称,对应jqgrid的name属性 */
    private String displayName;

    /** 列类型 */
    private String columnType;

    /** 是否主键（1是） */
    private String isPk;

    /** 是否必填（1是） */
    private String isRequired;

    /** 新增时是否显示在表单(1是) */
    private String isInsert;

    /** 编辑时是否显示在表单(1是) */
    private String isEdit;

    /** 是否PC端列表显示（1是） */
    private String isPcList;

    /** 是否是手机端列表显示(1是) */
    private String isMobileList;

    /** 是否是PC端查询字段(1是) */
    private String isPcQuery;

    /** 是否是手机端查询字段(1是) */
    private String isMobileQuery;

    /** 是否可编辑 */
    private String isEditAble;

    /** 是否显示此列 */
    private String isDisplay;

    /** 是否多选,jqgrid单元格为下拉框时有此属性 */
    private String isMultiple;

    /** 是否可以被resize,对应jqgrid的resizable属性 */
    private String isResize;

    /** 是否可以排序,对应jqgrid的sortable属性 */
    private String isSort;

    /** 列宽是否固定不变(1是) */
    private String isFixed;

    /** 列宽,对应jqgrid的width属性,只能是像素值,不能是百分比 */
    private String width;

    /** 当显示类型为select时,服务段的请求地址 */
    private String dataUrl;

    /** 对列进行格式化时设置的函数名或者类型 */
    private String formatter;

    /** 对应jqgrid的formatter属性,用于自定义列的显示样式 */
    private String formatterFunc;

    /** 查询方式（等于、不等于、大于、小于、范围） */
    private String queryType;

    /** 显示类型（文本框、文本域、下拉框、复选框、单选框、日期控件） */
    private String htmlType;

    /** 字典类型 */
    private String dictType;

    /** 排序时的默认值 */
    private Long sort;

    /** 默认值 */
    private String defValue;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setModuleId(String moduleId) 
    {
        this.moduleId = moduleId;
    }

    public String getModuleId() 
    {
        return moduleId;
    }
    public void setTableCode(String tableCode) 
    {
        this.tableCode = tableCode;
    }

    public String getTableCode() 
    {
        return tableCode;
    }
    public void setColumnName(String columnName) 
    {
        this.columnName = columnName;
    }

    public String getColumnName() 
    {
        return columnName;
    }
    public void setDisplayName(String displayName) 
    {
        this.displayName = displayName;
    }

    public String getDisplayName() 
    {
        return displayName;
    }
    public void setColumnType(String columnType) 
    {
        this.columnType = columnType;
    }

    public String getColumnType() 
    {
        return columnType;
    }
    public void setIsPk(String isPk) 
    {
        this.isPk = isPk;
    }

    public String getIsPk() 
    {
        return isPk;
    }
    public void setIsRequired(String isRequired) 
    {
        this.isRequired = isRequired;
    }

    public String getIsRequired() 
    {
        return isRequired;
    }
    public void setIsInsert(String isInsert) 
    {
        this.isInsert = isInsert;
    }

    public String getIsInsert() 
    {
        return isInsert;
    }
    public void setIsEdit(String isEdit) 
    {
        this.isEdit = isEdit;
    }

    public String getIsEdit() 
    {
        return isEdit;
    }
    public void setIsPcList(String isPcList) 
    {
        this.isPcList = isPcList;
    }

    public String getIsPcList() 
    {
        return isPcList;
    }
    public void setIsMobileList(String isMobileList) 
    {
        this.isMobileList = isMobileList;
    }

    public String getIsMobileList() 
    {
        return isMobileList;
    }
    public void setIsPcQuery(String isPcQuery) 
    {
        this.isPcQuery = isPcQuery;
    }

    public String getIsPcQuery() 
    {
        return isPcQuery;
    }
    public void setIsMobileQuery(String isMobileQuery) 
    {
        this.isMobileQuery = isMobileQuery;
    }

    public String getIsMobileQuery() 
    {
        return isMobileQuery;
    }
    public void setIsEditAble(String isEditAble) 
    {
        this.isEditAble = isEditAble;
    }

    public String getIsEditAble() 
    {
        return isEditAble;
    }
    public void setIsDisplay(String isDisplay) 
    {
        this.isDisplay = isDisplay;
    }

    public String getIsDisplay() 
    {
        return isDisplay;
    }
    public void setIsMultiple(String isMultiple) 
    {
        this.isMultiple = isMultiple;
    }

    public String getIsMultiple() 
    {
        return isMultiple;
    }
    public void setIsResize(String isResize) 
    {
        this.isResize = isResize;
    }

    public String getIsResize() 
    {
        return isResize;
    }
    public void setIsSort(String isSort) 
    {
        this.isSort = isSort;
    }

    public String getIsSort() 
    {
        return isSort;
    }
    public void setIsFixed(String isFixed) 
    {
        this.isFixed = isFixed;
    }

    public String getIsFixed() 
    {
        return isFixed;
    }
    public void setWidth(String width) 
    {
        this.width = width;
    }

    public String getWidth() 
    {
        return width;
    }
    public void setDataUrl(String dataUrl) 
    {
        this.dataUrl = dataUrl;
    }

    public String getDataUrl() 
    {
        return dataUrl;
    }
    public void setFormatter(String formatter) 
    {
        this.formatter = formatter;
    }

    public String getFormatter() 
    {
        return formatter;
    }
    public void setFormatterFunc(String formatterFunc) 
    {
        this.formatterFunc = formatterFunc;
    }

    public String getFormatterFunc() 
    {
        return formatterFunc;
    }
    public void setQueryType(String queryType) 
    {
        this.queryType = queryType;
    }

    public String getQueryType() 
    {
        return queryType;
    }
    public void setHtmlType(String htmlType) 
    {
        this.htmlType = htmlType;
    }

    public String getHtmlType() 
    {
        return htmlType;
    }
    public void setDictType(String dictType) 
    {
        this.dictType = dictType;
    }

    public String getDictType() 
    {
        return dictType;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setDefValue(String defValue) 
    {
        this.defValue = defValue;
    }

    public String getDefValue() 
    {
        return defValue;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("moduleId", getModuleId())
            .append("tableCode", getTableCode())
            .append("columnName", getColumnName())
            .append("displayName", getDisplayName())
            .append("columnType", getColumnType())
            .append("isPk", getIsPk())
            .append("isRequired", getIsRequired())
            .append("isInsert", getIsInsert())
            .append("isEdit", getIsEdit())
            .append("isPcList", getIsPcList())
            .append("isMobileList", getIsMobileList())
            .append("isPcQuery", getIsPcQuery())
            .append("isMobileQuery", getIsMobileQuery())
            .append("isEditAble", getIsEditAble())
            .append("isDisplay", getIsDisplay())
            .append("isMultiple", getIsMultiple())
            .append("isResize", getIsResize())
            .append("isSort", getIsSort())
            .append("isFixed", getIsFixed())
            .append("width", getWidth())
            .append("dataUrl", getDataUrl())
            .append("formatter", getFormatter())
            .append("formatterFunc", getFormatterFunc())
            .append("queryType", getQueryType())
            .append("htmlType", getHtmlType())
            .append("dictType", getDictType())
            .append("sort", getSort())
            .append("defValue", getDefValue())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
